import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入css样式
import '@/styles/reset.css'
// 引入amfe-flexible
import 'amfe-flexible'
// 引入vant插件
import '@/utils/vant.js'
// 引入自定义指令
import focus from './utils/directive.js'
// 引入字体图标库
import '@/assets/icon/iconfont.css'
// 引入路由模块
import '@/utils/permission'
Vue.use(focus)
Vue.config.productionTip = false
new Vue({
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render: h => h(App)
}).$mount('#app')
if (process.env.NODE_ENV !== 'development') { // process是Node环境全部变量, 运行时根据敲击的命令不同, 脚手架会取环境变量给env添加属性和值
  console.log = function () { }
  console.error = function () { }
  console.dir = function () { }
}
